home *** CD-ROM | disk | FTP | other *** search
- VERSION 4.00
- Begin VB.Form CountDown
- BackColor = &H00000000&
- BorderStyle = 3 'Fixed Dialog
- Caption = "Countdown"
- ClientHeight = 2970
- ClientLeft = 6555
- ClientTop = 4020
- ClientWidth = 1995
- ControlBox = 0 'False
- Height = 3375
- Icon = "CountDwn.frx":0000
- Left = 6495
- LinkTopic = "Form1"
- LockControls = -1 'True
- MaxButton = 0 'False
- MinButton = 0 'False
- ScaleHeight = 2970
- ScaleWidth = 1995
- ShowInTaskbar = 0 'False
- Top = 3675
- Width = 2115
- Begin VB.Timer Timer2
- Enabled = 0 'False
- Interval = 1
- Left = 2940
- Top = 3780
- End
- Begin VB.Timer Timer1
- Interval = 1000
- Left = 3480
- Top = 3780
- End
- Begin VB.PictureBox picLCD
- BorderStyle = 0 'None
- Height = 495
- Left = 1260
- ScaleHeight = 495
- ScaleWidth = 555
- TabIndex = 0
- Top = 2430
- Width = 555
- End
- Begin VB.Image Image1
- Height = 480
- Left = 720
- Picture = "CountDwn.frx":000C
- Top = 2340
- Width = 480
- End
- Begin VB.Image Image2
- Height = 480
- Left = 120
- Picture = "CountDwn.frx":044E
- Top = 2340
- Visible = 0 'False
- Width = 480
- End
- Attribute VB_Name = "CountDown"
- Attribute VB_Creatable = False
- Attribute VB_Exposed = False
- Option Explicit
- Dim moLCD As New CLCD
- Private Sub Form_Load()
- With moLCD
- .ShowUnlitSegments = True
- .ForeColor = vbBlue
- Set .Container = picLCD
- .Caption = "10"
- End With
- End Sub
- Private Sub Form_Unload(Cancel As Integer)
- Set moLCD = Nothing
- Set CountDown = Nothing
- End Sub
- Private Sub Timer1_Timer()
- ' Note the Evil Type Coercion.
- moLCD.Caption = moLCD.Caption - 1
- Select Case moLCD.Caption
- Case 2: Image2.Visible = True
- Case 0: Image2.Visible = False
- Timer1.Enabled = False
- Timer2.Enabled = True
- End Select
- If moLCD.Caption = 0 Then
- Timer1.Enabled = False
- Timer2.Enabled = True
- End If
- End Sub
- Private Sub Timer2_Timer()
- With Image1
- .Top = .Top - (Image1.Height * 0.1)
- If .Top < -Image1.Height Then Unload Me
- End With
- End Sub
-